﻿<!-- header section start-->
<div class="header-section">

    <!--toggle button start-->
    <a class="toggle-btn"><i class="fa fa-bars"></i></a>
    <!--toggle button end-->

    <!--notification menu start -->
    <div class="menu-right">
        <ul class="notification-menu">
            <li>
                <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    <img src="/static/image/user-avatar.png" alt="" />
                    {$userName}
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                  <!--  <li><a href="#" style="cursor:pointer"><i class="fa fa-user"></i>信息</a></li>-->
                    <li><a href="/admin/User/getPasswordEdit" style="cursor:pointer"><i class="fa fa-cog"></i>{:lang("修改密码")}</a></li>
                    <li><a onclick="logout()" style="cursor:pointer"><i class="fa fa-sign-out"></i>{:lang("退出")}</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <!--notification menu end -->
</div>
<!-- header section end-->
<script src="/static/js/public/jquery-1.10.2.min.js"></script>
<script>
    //退出登录
    function logout(){
        $.post("/admin/User/logout","",function(){
            location.reload()
        })
    }
</script>
